// ==========================================================================
// 云捷GO自动生成路由代码，只生成一次，按需修改,再次生成不会覆盖.
// 生成日期：2021-07-26 15:16:14
// 生成路径: app/controller/module/news_router.go
// 生成人：gfcms
// ==========================================================================
package module

import (
	"myblog/app/controller/module/news"
	"myblog/app/service/middleware/auth"
	"myblog/app/service/middleware/router"
)

//加载路由
func init() {
	g1 := router.New("admin", "/module/news", auth.Auth)
	g1.GET("/", "module:news:view", news.List)
	g1.POST("/list", "module:news:list", news.ListAjax)
	g1.GET("/add", "module:news:add", news.Add)
	g1.POST("/add", "module:news:add", news.AddSave)
	g1.POST("/remove", "module:news:remove", news.Remove)
	g1.GET("/edit", "module:news:edit", news.Edit)
	g1.POST("/edit", "module:news:edit", news.EditSave)
	g1.POST("/export", "module:news:export", news.Export)
	g1.POST("/upfile", "module:news:view", news.Upfile)
	g1.POST("/delfile", "module:news:view", news.Delfile)

}
